package com.mayflygeek.mayflyask.controller;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mayflygeek.mayflyask.entity.Role;
import com.mayflygeek.mayflyask.service.RoleService;

/**
 * @author 蝈蝈 
 * @email guodefu909@126.com
 * @team 蜉蝣极客
 * @link www.mayflygeek.com
 * 类说明
 */
@Controller
public class RoleController {
	
	private Logger log = LoggerFactory.getLogger(getClass());

	@Resource
	private RoleService roleService;
	
	@RequestMapping(value = "/roleList")
	@ResponseBody  
	public List<Role> getRole() {
		log.info("/roleList");
		return roleService.getAllRole();
	}

}
